tools/perf: Fix missing LDFLAGS for some programs
authorBen Hutchings <benh@debian.org>
Sat, 15 Jan 2022 21:59:11 +0000 (22:59 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 31 Aug 2023 20:24:51 +0000 (21:24 +0100)
Signed-off-by: Ben Hutchings <benh@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name tools-perf-fix-missing-ldflags-for-some-programs.patch

tools/perf/Makefile.perf

index 40667104e4bcec39beb950100d995b58fdde6e44..409549be1e123ad825edd372de16a6ab242d08f0 100644 (file)
@@ -808,7 +808,7 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h
 .SECONDARY: $(DLFILTERS:.so=.o)
 
 $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
-       $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<
+       $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) $(LDFLAGS) -shared -o $@ $<
 
 ifndef NO_JVMTI
 LIBJVMTI_IN := $(OUTPUT)jvmti/jvmti-in.o